﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 派工物料
    /// </summary>
    [SugarTable("DisMaterial")]
    public class DisMaterial
    {
        /// <summary>
        /// 生产物料id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DisMaterialId { get; set; }

        public string? DNumber { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public int MaterialId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string? MSubject { get; set; }
        /// <summary>
        /// 仓库入库id
        /// </summary>
        public int? WarehouseStorageId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? MPNumber { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? MPName { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string? MPSpec { get; set; }
        /// <summary>
        /// 产品单位
        /// </summary>
        public string? MPUnit { get; set; }
        /// <summary>
        /// 产品比率
        /// </summary>
        public decimal? PRatio { get; set; }
        /// <summary>
        /// 产品现有库存
        /// </summary>
        public int? PStock { get; set; }
        /// <summary>
        /// 需要数量
        /// </summary>
        public int?  NeedNum { get; set; }
        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime? ArrivalDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

    }
}
